﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SendMsg.aspx.cs" Inherits="OTA.Notification.Web.Message.SendMsg" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>发送信息</title>
    <link href="../../Style/main.css" type="text/css" rel="stylesheet" />

    <script src="../../common/jquery-1.2.6.min.js"></script>

    <script src="../../common/jquery-impromptu.1.5.js"></script>

    <script>
    
        $(document).ready(function(){
        
            $('#cbDelay').click(function(){
                setDelay(!$(this).attr("checked"));
                
            });
            
            $('#cbRepeat').click(function(){
                setRepeat(!$(this).attr("checked"));
            });
            

            setRepeat(true);
            
            setDelay(true);
            
        });
        
        function setRepeat(b){
        
            $('#cbRepeat').attr('checked', !b);
            $('#spRepeat').attr('disabled', b);
            $('#spRepeat input').attr('disabled', b);
        }
        
        function setDelay(b){
        
            $('#cbDelay').attr('checked', !b);
            $('#spDelay').attr('disabled', b);
            $('#spDelay input').attr('disabled', b);
        }  
          
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div class="div_ct">
        <table width="100%">
            <tr>
                <td>
                    消息发送类型:
                </td>
                <td>
                    <asp:DropDownList ID="ddlMsgSendType" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    重要性:
                </td>
                <td>
                    <asp:DropDownList ID="ddlLevel" runat="server">
                        <asp:ListItem Value="L">低</asp:ListItem>
                        <asp:ListItem Value="M">中</asp:ListItem>
                        <asp:ListItem Value="H">高</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    接收人:
                </td>
                <td>
                    <asp:TextBox ID="txtTo" runat="server" CssClass="text-area"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    消息标题:
                </td>
                <td>
                    <asp:TextBox ID="txtTitle" runat="server" CssClass="text-area"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    消息内容:
                </td>
                <td>
                    <asp:TextBox ID="txtMsg" runat="server" Height="100px" TextMode="MultiLine" 
                        Width="320px" CssClass="text-area"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    延迟:
                </td>
                <td>
                    <input id="cbDelay" type="checkbox" />
                    <span id="spDelay">
                        <asp:TextBox ID="txtDelay" runat="server" MaxLength="4" Width="30px" CssClass="text-area"></asp:TextBox>
                        秒后发送</span>
                </td>
            </tr>
            <tr>
                <td>
                    重复:
                </td>
                <td>
                    <input id="cbRepeat" type="checkbox" />
                    <span id="spRepeat">重复间隔时间：<asp:TextBox ID="txtiInterval" runat="server" Width="30px" CssClass="text-area"></asp:TextBox>
                        分钟， 重复次数：<asp:TextBox ID="txtTimes" runat="server" Width="40px" CssClass="text-area"></asp:TextBox>
                        次</span>
                </td>
            </tr>
            <tr>
                <td>
                    组方式:
                </td>
                <td>
                    <asp:CheckBox ID="chkCombo" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
        </table>
    </div>
    <p class="btn_center">
        <asp:Button ID="btnSend" runat="server" OnClick="btnSend_Click" Text="Send" CssClass="button" />
    </p>
    </form>
</body>
</html>
